package com.xin.di.uav.operate.rest;

import com.alibaba.fastjson.JSONObject;
import com.xin.di.uav.common.request.order.CancelWaybillRequest;
import com.xin.di.uav.common.request.order.CarrierWaybillRequest;
import com.xin.di.uav.common.request.order.PlaceOrderRequest;
import com.xin.di.uav.common.request.order.SelectOrderRequest;
import com.xin.di.uav.operate.service.IntraCityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author LTQ
 * @since 2023-04-04
 */
@RestController
@RequestMapping("/sys/intra/city/")
public class IntraCityRest {

    @Autowired
    private IntraCityService intraCityService;

    public JSONObject carrierWaybill(CarrierWaybillRequest carrierWaybillRequest) {
        return intraCityService.carrierWaybill(carrierWaybillRequest);
    }

    public JSONObject placeOrder(PlaceOrderRequest placeOrderRequest) {
        return intraCityService.placeOrder(placeOrderRequest);
    }

    public JSONObject selectOrder(SelectOrderRequest selectOrderRequest) {
        return intraCityService.selectOrder(selectOrderRequest);
    }

    public JSONObject cancelWaybill(CancelWaybillRequest cancelWaybillRequest) {
        return intraCityService.cancelWaybill(cancelWaybillRequest);
    }

    public JSONObject selectTerminalList() {
        return intraCityService.selectTerminalList();
    }

}
